package fit.conceptmap.entities;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the share database table.
 * 
 */
@Entity
@NamedQuery(name="Share.findAll", query="SELECT s FROM Share s")
public class Share implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private String idshare;

	//bi-directional many-to-one association to Conceptmap
	@ManyToOne
	@JoinColumn(name="idConceptMaps")
	private Conceptmap conceptmap;

	//bi-directional many-to-one association to User
	@ManyToOne
	@JoinColumn(name="idmember")
	private User user;

	public Share() {
	}

	public String getIdshare() {
		return this.idshare;
	}

	public void setIdshare(String idshare) {
		this.idshare = idshare;
	}

	public Conceptmap getConceptmap() {
		return this.conceptmap;
	}

	public void setConceptmap(Conceptmap conceptmap) {
		this.conceptmap = conceptmap;
	}

	public User getUser() {
		return this.user;
	}

	public void setUser(User user) {
		this.user = user;
	}

}